﻿@model viBook.Models.RequireEmailModel
@{
    ViewBag.Title = "Reset password";
    Layout = "~/Views/Shared/_AccountLayout.cshtml";
}
<link href="@Url.Content("~/Content/jquery.realperson.css")" rel="stylesheet" type="text/css"/>
<script src="@Url.Content("~/Scripts/jquery.realperson.js")" type="text/javascript"> </script>

<p>
    Enter the email address you used when you joined and we’ll send you instructions
    to reset your password.</p>
<p>
    For security reasons, we do NOT store your password. So rest assured that we will
    never send your password via email.</p>
<div class="form-inline">
    @using (Html.BeginForm("RequestResetPassword", "Account", FormMethod.Post, new { @class = "gen-form" }))
    {
        <div class="form-field">
            <fieldset>
                <label for="Email">
                    Email Address</label>
                @Html.TextBoxFor(model => model.Email, new { @class = "text-input" })
            </fieldset>
        </div>
        <div class="form-field realperson-regen">
            <fieldset>
                <label for="RealPerson">
                    Captcha</label>
                @Html.TextBoxFor(m => m.RealPerson, new { @class = "text-input" })
                <p class="message">@Html.ValidationMessageFor(m => m.RealPerson)</p>
                <div id="defaultReal">
                </div>
            </fieldset>
        </div>
        <input class="button" type="submit" value="Send Reset Instructions" />
    }
</div>
<script type="text/javascript">
    $("#defaultReal").realperson({
        length: 6,
        includeNumbers: true,
        hashName: 'realHash'
    });
</script>